namespace DataAccess.Factories
{
    using System;
    using System.Data.Common;
    using System.Data.Odbc;

    class OdbcADOFactory : IADOFactory
    {
        public System.Data.Odbc.OdbcCommand OdbcCommand
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }
        #region Miembros de IADOFactory

        public DbConnection CreateConnection()
        {
            return new OdbcConnection();
        }

        public DbDataAdapter CreateDataAdapter()
        {
            return new OdbcDataAdapter();
        }

        public DbCommand CreateCommand()
        {
            return new OdbcCommand();
        }

        public DbCommandBuilder CreateCommandBuilder()
        {
            return new OdbcCommandBuilder();
        }

        public DbParameter CreateParameter()
        {
            return new OdbcParameter();
        }

        #endregion
    }
}
